#setting name of the exe
set(BIN_NAME ${pro_name})

#add all .cpp .h .hpp file
file(GLOB_RECURSE SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} LIST_DIRECTORY false
    ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/*.h 
    ${CMAKE_CURRENT_SOURCE_DIR}/src/*.hpp
)

#add qml source
LIST(APPEND SRCS "assets/assets.qrc")

add_executable(${BIN_NAME} 
# WIN32  
# if not need console , please use WIN32              
)
target_sources(${BIN_NAME} PRIVATE ${SRCS})

#link lib
target_link_libraries(${BIN_NAME} PRIVATE
        Qt5::Core
        Qt5::Quick
        Qt5::Qml
    )

